<?php

namespace app\admin\middleware;

use think\facade\Session;

class Admin
{
    public function handle($request, \Closure $next)
    {
        $id=Session::get('id');
        if(empty($id)){
            return redirect('login/login');
        }
        return $next($request);
    }
}
